<style type="text/css">
    .demo-upload-list {
        display: inline-block;
        width: 60px;
        height: 60px;
        text-align: center;
        line-height: 60px;
        border: 1px solid transparent;
        border-radius: 4px;
        overflow: hidden;
        background: #fff;
        position: relative;
        box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
        margin-right: 4px;
    }

    .demo-upload-list img {
        width: 100%;
        height: 100%;
    }

    .demo-upload-list-cover {
        display: none;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, .6);
    }

    .demo-upload-list:hover .demo-upload-list-cover {
        display: block;
    }

    .demo-upload-list-cover i {
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        margin: 0 2px;
    }
</style>
<template>
    <i-form>
        <Form-item label="组织名字：" prop="title">
            <span>{{formValidate.title}}</span>
        </Form-item>
        <!--<Form-item label="：" prop="title">-->
            <!--<span>{{formValidate.title}}</span>-->
        <!--</Form-item>-->
        <Form-item>
            <i-button @click="jumpPage('','/OrganizeList')" type="primary">返回</i-button>
        </Form-item>
    </i-form>

</template>
<script>
    import apiUtil from '../../assets/utils/api_util';

    export default {
        data() {
            return {
                formValidate: {
                    //添加字段
                    title: '',
                },
                image: '',
                visible: false,
                seeImg:'',
            }
        },
        mounted: function () {

            // let id = this.$route.query.id;
            this.getDetail(this.$route.query.id)
        },

        methods: {
            //跳转
            jumpPage: function (id, url) {
                //跳转
                let route = '';
                if (id.length > 0) {
                    route = {
                        path: url,
                        query: {
                            id: id
                        },
                    };
                } else {
                    route = {
                        path: url,
                    };
                }
                this.$router.push(route);
            },
            //详情
            getDetail:function(id){
                let that = this;
                that.$Loading.start();

                let para ={
                    id:id,
                };

                apiUtil.get(that,apiUtil.urls.OrganizeDetail, para, function (res) {
                    that.$Loading.finish();
                    that.formValidate.title =res.Msg.Title;
                    // that.image = res.Msg.faceimg;
                });
            },


        }
    }
</script>
